/*
 * tick.h
 *
 *  Created on: 2021-12-10
 *      Author: chenss
 */

#ifndef INC_TICK_H_
#define INC_TICK_H_

#include "main.h"

BEGIN_C_DECLS
typedef uint64_t Tick_t;

void Tick_Init(void);
Tick_t Tick_Microseconds(void);
Tick_t Tick_Milliseconds(void);
uint32_t Tick_Seconds(void);
void Tick_DelayMicroseconds(uint32_t us);

END_C_DECLS
#endif /* INC_TICK_H_ */
